﻿using SqlSugar;
using System.Collections.Generic;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_comment")]
    public class Whr_comment
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "comment_id", IsPrimaryKey = true)]
        public int CommentId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "course_id")]
        public int CourseId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "content")]
        public string Content { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "create_at")]
        public int CreateAt { get; set; } = DateTimeExt.GetUnixTimestamp();

        /// <summary>
        /// Desc:
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "status")]
        public int Status { get; set; }

        [SugarColumn(ColumnName = "is_anonymous")]
        public byte Anonymous { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Whr_comment_images> CommentImages { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string Nickname { get; set; }
    }
}
